package com.cluster.gulimall.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cluster.gulimall.common.utils.PageUtils;
import com.cluster.gulimall.common.utils.Query;
import com.cluster.gulimall.order.entity.OmsOrderReturnReason;
import com.cluster.gulimall.order.mapper.OmsOrderReturnReasonMapper;
import com.cluster.gulimall.order.service.OrderReturnReasonService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("orderReturnReasonService")
public class OrderReturnReasonServiceImpl extends ServiceImpl<OmsOrderReturnReasonMapper, OmsOrderReturnReason> implements OrderReturnReasonService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OmsOrderReturnReason> page = this.page(
                new Query<OmsOrderReturnReason>().getPage(params),
                new QueryWrapper<OmsOrderReturnReason>()
        );

        return new PageUtils(page);
    }

}